import java.util.Scanner;

public class Main1635 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n= sc.nextInt();
        int b= sc.nextInt();
        int c= sc.nextInt();
        int d= sc.nextInt();
        int a=b+c+d;
        if (n>=a){
            System.out.println(n-a+" "+"YES");
        }else System.out.println(a-n+" "+"NO");
    }
}
